<template>
	<view class="assets-manage">
		<view class="assets-manage-content">
			<view class="assets-manage-content-info">
				<x-text-info :leftTitle="['总资产（元）']" rightTitle="明细" @handle="toAssetsDetail">
				</x-text-info>
				<view class="assets-manage-content-info-number">{{totalAssert ? totalAssert : '0.00' }}</view>
				<view class="assets-manage-content-info-btn" @click="toTixianPage">提现</view>
			</view>
			<view class="assets-manage-content-trade">
				<view class="assets-manage-content-trade-item">
					<x-text-info :rightTitle="tradeTotal" :leftTitle="['交易金额（元）']" iconName="arrow-down" rightFontColor="#EB5B01" :rightFontSize="36" arrowColor="#999999"
					 :arrowSize="24" @handle="handle" :open="open">
						<template #logo>
							<i-icon icon="iconzichanguanli" type="single" size="32rpx" color="#FBD220"></i-icon>
						</template>
					</x-text-info>
				</view>
				<view class="assets-manage-content-trade-wrapper" :class="{active: open }">
					<view class="assets-manage-content-trade-item">
						<view class="content-item" @click="getList('0')">
							<x-text-info :leftTitle="['交易中', '进行中的订单金额']" :rightFontSize="36" :rightTitle="tradingNum" rightFontColor="#EB5B01"
							 arrowColor="#999999" :arrowSize="24">
							</x-text-info>
						</view>
					</view>
					<view class="assets-manage-content-trade-item" @click="getList('1')">
						<view class="content-item">
							<x-text-info :leftTitle="['结算中', '已完成的订单金额']" :rightFontSize="36" :rightTitle="tradedNum" rightFontColor="#EB5B01"
							 arrowColor="#999999" :arrowSize="24">
							</x-text-info>
						</view>
					</view>
				</view>
			</view>
			<view class="assets-manage-content-trade-item mt bgfff" @click="toMarginPage">
				<x-text-info :rightTitle="depositText" :leftTitle="['供应商保证金']" rightFontColor="#999999" :rightFontSize="30" arrowColor="#999999"
				 :arrowSize="24" :open="open">
					<template #logo>
						<i-icon icon="iconbaozhengjin" type="single" size="32rpx" color="#FBD220"></i-icon>
					</template>
				</x-text-info>
			</view>
			<!-- <view class="assets-manage-content-trade-item mt bgfff">
				<x-text-info rightTitle="已开通" :leftTitle="['供应商保证金']" rightFontColor="#999999" :rightFontSize="30" arrowColor="#999999"
				 :arrowSize="24" @handle="Core.showToast()" :open="open">
					<template #logo>
						<i-icon icon="iconbaozhengjin" type="single" size="32rpx" color="#FBD220"></i-icon>
					</template>
				</x-text-info>
			</view> -->
			<view class="assets-manage-content-trade-item mt bgfff">
				<x-text-info :rightTitle="total===0?'未绑定':''" :leftTitle="['银行卡']" rightFontColor="#999999" :rightFontSize="30" arrowColor="#999999"
				 :arrowSize="24" @handle="banCard" :open="open">
					<template #logo>
						<i-icon icon="iconyinhangka" type="single" size="26rpx" color="#FBD220"></i-icon>
					</template>
				</x-text-info>
			</view>
		</view>
	</view>
</template>

<script src="./assetsManage.js"></script>
<style lang="scss">
	@import './assetsManage.scss'
</style>
